<?php

session_start();

if(isset($_SESSION['TenDN']))

	header("location:trangchu.php");



?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="../../css/mystyle.css" rel="stylesheet" type="text/css" />

<link href="../../css/button.css" rel="stylesheet" type="text/css" />

<title>ADMIN</title>

</head>



<body style="background-color:#1d8f00">

<div id="page">

<div >

<!-- mod - phuong - 06/12 -login - start-->

<form method="post" name="login" onsubmit="" action="../../coms/xl_dangnhap.php">

<table align="center" cellpadding="5" cellspacing="0" border="0" style="color:#FFFFFF;" width="53%">

	<tr>

    	<td rowspan="5" width="37%"><img src="../../images/logo.gif" /></td>

    </tr>

	<tr>

    	<td colspan="2" align="center" style="color:#ffdb03; font-size:16px"><b>ĐĂNG NHẬP</b></td>

    </tr>

    <tr>

    	<td width="21%">Tên đăng nhập:</td>

        <td width="42%"><input name="txt_username" type="text" size="30" id="txt_username" /></td>

    </tr>

    <tr>

    	<td>Mật khẩu</td>

        <td><input name="txt_pass" type="password" size="30" id="txt_pass" /></td>

    </tr>

    <tr>

    	<td colspan="2" align="center">

        	<input name="btn_dangnhap" type="submit" value="Đăng nhập" class="button small blue"/>

            &nbsp;&nbsp;&nbsp;

        	<input name="btn_lamlai" type="reset" value="Làm lại" class="button small blue"/>

        </td>

    </tr>

    <tr>

    	<td>&nbsp;</td>

    	<td colspan="2" align="center"><a href="laylaimatkhau.php" style="color:#FFFFFF;">Quên mật khẩu</a> &nbsp; &nbsp; <a href="../index.php" style="color:#FFFFFF;">Về website</a></td>

    </tr>

</table>

</form>

<!-- mod - phuong - 06/12 -login - end-->





	<?php

	 /*include("../../include/configuration.php");

	include("../../include/database.php");

	$obj_config = new Config();

	include_once("../../coms/xl_admin.php");

	$nv = new xl_admin();

	$arr_nv = $nv->Load_nv();

	

	$user = $_POST['txt_tentruycap'];

	$pass = $_POST['txt_matkhau'];

	

	if(isset($_POST['btn_dangnhap']))

	{

		for($i=0; $i<count($arr_nv); $i++)

		{

			$row = $arr_nv[i];

			$flag1=0;

			$flag2=0;

			if($row['TenTruyCap'] == $user)

				$flag1 = 1;

			if($row['MatKhau'] == $pass)

				$flag2 = 1;

		}		

	} */

		?>

</div>

</div>

</body>

</html>

